package com.cy.store.vo;

import java.io.Serializable;

public class FavorVO implements Serializable {
    private Integer fid;
    private Integer uid;
    private Integer pid;
    private String title;
    private Long realPrice;
    private String image;

    public Integer getFid() {
        return fid;
    }

    public void setFid(Integer fid) {
        this.fid = fid;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }


    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Long getRealPrice() {
        return realPrice;
    }

    public void setRealPrice(Long realPrice) {
        this.realPrice = realPrice;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof FavorVO)) return false;

        FavorVO favorVO = (FavorVO) o;

        if (!fid.equals(favorVO.fid)) return false;
        if (!getUid().equals(favorVO.getUid())) return false;
        if (!getPid().equals(favorVO.getPid())) return false;
        if (!getTitle().equals(favorVO.getTitle())) return false;
        if (!getRealPrice().equals(favorVO.getRealPrice())) return false;
        return getImage().equals(favorVO.getImage());
    }

    @Override
    public int hashCode() {
        int result = fid.hashCode();
        result = 31 * result + getUid().hashCode();
        result = 31 * result + getPid().hashCode();
        result = 31 * result + getTitle().hashCode();
        result = 31 * result + getRealPrice().hashCode();
        result = 31 * result + getImage().hashCode();
        return result;
    }

    @Override
    public String toString() {
        return "FavorVO{" +
                "fid=" + fid +
                ", uid=" + uid +
                ", pid=" + pid +
                ", title='" + title + '\'' +
                ", realPrice=" + realPrice +
                ", image='" + image + '\'' +
                '}';
    }
}
